import type { RouteConfigsTable } from "/#/index";
import { $t } from "/@/plugins/i18n";

const issueTaskRouter: RouteConfigsTable = {
  path: "/issueTask",
  redirect: "/issueTask/labeling",
  meta: {
    icon: "information-line",
    title: $t("menus.hsissueTask"),
    rank: 4
  },
  children: [
    {
      path: "/issueTask/labeling",
      name: "TackLabeling",
      component: () => import("/@/views/task/labelingTask/index.vue"),
      meta: {
        title: $t("menus.hstasklabel"),
        roles: ["admin", "super", "warehouse", "user"]
      }
    },
    {
      path: "/issueTask/distribution",
      name: "TackDistribution",
      component: () => import("/@/views/task/distribution/index.vue"),
      meta: {
        title: $t("menus.hstaskdistribution"),
        roles: ["admin", "super", "warehouse", "user"]
      }
    }
  ]
};

export default issueTaskRouter;
